/**
 * 
 */
package com.yidu.drug.service;

import java.util.List;
import java.util.Map;

import com.yidu.drug.model.DrugManagerModel;
import com.yidu.drug.model.WholesaleDetailModel;

/**
 * 类的描述
 * @author yuanqing
 * @date 2018年8月21日上午9:13:28
 * @version 1.0
 */
public interface WholesaleDetaiService {
	int deleteByPrimaryKey(String pfxqlId);

	int insert(WholesaleDetailModel record);

	int insertSelective(WholesaleDetailModel record);

	WholesaleDetailModel selectByPrimaryKey(String pfxqlId);

	int updateByPrimaryKeySelective(WholesaleDetailModel record);

	int updateByPrimaryKey(WholesaleDetailModel record);

	int findTotalRows(WholesaleDetailModel record);

	List<WholesaleDetailModel> findAllPage(Map<String,String> paramMap);

	List<WholesaleDetailModel> findLoginRows(WholesaleDetailModel t);
	
	WholesaleDetailModel findDrugId(String drugId);
	/**
	 * 增加批发订单和批发详情
	 * @param manager 用户对象
	 * @param wholesaleDetail 批发详情对象
	 * @param arr 批发详情数据
	 * @param sum 批发总数量
	 * @param totals 批发
	 * @return 是否成功
	 */
	String insertAll(DrugManagerModel manager,WholesaleDetailModel wholesaleDetail,String arr,String sum,String totals);
	/**
	 * 修改批发详情
	 * @param manager 用户对象
	 * @param wholesaleDetail 批发详情对象
	 * @param arr 批发详情数据
	 * @param sum 批发总数量
	 * @param totals 批发
	 * @return 是否成功
	 */
	String updateAll(DrugManagerModel manager,WholesaleDetailModel wholesaleDetail,String arr,String sum,String totals,String pfId);
	/**
	 * 根据批发id查询批发详情信息
	 * @param pfId 批发Id
	 * @return 批发详情集合
	 */
	List<WholesaleDetailModel> findPfId(String pfId);

	WholesaleDetailModel findByPfxqlId(String pfxqlId);
}
